import 'package:flutter/material.dart';
import 'package:myapp/app/theme/app_color.dart';

//todo 偷个懒 随便找几个图
class ProfileBar extends AppBar {
  ProfileBar({GestureTapCallback? onLeadTap, GestureTapCallback? onEmailTap, GestureTapCallback? onSettingTap})
      : super(
            elevation: 0,
            backgroundColor: AppColor.white,
            leading: InkWell(child: Icon(Icons.qr_code_outlined, color: AppColor.hex_333,), onTap: onLeadTap,),
            actions: [
              InkWell(
                child: Container(
                  child: Icon(Icons.email_outlined, color: AppColor.hex_333),
                  margin: EdgeInsets.only(right: 10),
                  padding: EdgeInsets.all(5),
                ),
                onTap: onEmailTap,
              ),
              InkWell(
                child: Container(
                  child: Icon(Icons.settings, color: AppColor.hex_333),
                  margin: EdgeInsets.only(right: 10),
                  padding: EdgeInsets.all(5),
                ),
                onTap: onSettingTap,
              ),
            ]);
}
